<%@page import="serializare.SerializationToXml"%>
<%@page import="java.util.List"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.Enumeration"%>
<%@page import="core.controller.ServletParameters"%>
<%@page import="bean.Person"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
    <% 
    List<Person> search = null;
    if ((ServletParameters.getProjectPath() + "serialize.xml") != null){
        search = SerializationToXml.deserializeXMLToObject();
    }
    %>
        <B>Search person</b>
        <form action="ActionController" method="POST" name="description" >
            <table>
                <tr><td>Id</td><td><input type="text" name="id" value="" /></td></tr>
                <tr><td>Last Name</td><td><input type="text" name="lastName" value=""/></td></tr>
                <tr><td>First Name</td><td><input type="text" name="firstName" value=""/></td></tr>
                <tr><td>Age</td><td><input type="text" name="age" value=""/></td></tr>
            </table>
         
            <input type="hidden" name="event" value ="displaySearch" />
            <input type="submit" value="Search person"/>
            </form>
       <form action="ActionController" method="POST" name="description">
	    	<input type="hidden" name="event" value="returnHome" /> 
			<input type="submit" value="Return Home" name="return" />
	   </form>
           </body>
</html>